﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.M.Review.Domain.Entity
{
    /// <summary>
    /// 流程实例表
    /// </summary>
    [SugarTable("process_instance")]
    public class process_instance
    {
        /// <summary>
        /// 流程实例编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "流程实例编号", Length = 200)]
        public string? process_instance_number { get; set; }

        /// <summary>
        /// 当前节点编号
        /// </summary>
        [SugarColumn(ColumnDescription = "当前节点编号", Length = 200, IsNullable = true)]
        public string? current_node_number { get; set; }

        /// <summary>
        /// 当前节点名称
        /// </summary>
        [SugarColumn(ColumnDescription = "当前节点名称", Length = 200, IsNullable = true)]
        public string? current_node_name { get; set; }

        /// <summary>
        /// 剩余流程数
        /// </summary>
        [SugarColumn(ColumnDescription = "剩余流程数")]
        public int remaining_processes { get; set; }

        /// <summary>
        /// 流程发起人编号
        /// </summary>
        [SugarColumn(ColumnDescription = "流程发起人编号", Length = 200, IsNullable = true)]
        public string? process_initiator_number { get; set; }

        /// <summary>
        /// 流程发起人姓名
        /// </summary>
        [SugarColumn(ColumnDescription = "流程发起人", Length = 200, IsNullable = true)]
        public string? process_initiator { get; set; }


        /// <summary>
        /// 当前操作编号
        /// </summary>
        [SugarColumn(ColumnDescription = "当前操作编号", Length = 200, IsNullable = true)]
        public string? operator_number { get; set; }

        /// <summary>
        /// 当前操作名称
        /// </summary>
        [SugarColumn(ColumnDescription = "当前操作名称", Length = 200, IsNullable = true)]
        public string? operator_name { get; set; }

        /// <summary>
        /// 下一个编号
        /// </summary>下一个编号
        [SugarColumn(ColumnDescription = "下一个编号", Length = 200, IsNullable = true)]
        public string? to_da_role_number { get; set; }

        /// <summary>
        /// 下一个名称
        /// </summary>
        [SugarColumn(ColumnDescription = "下一个名称", Length = 200, IsNullable = true)]
        public string? to_da_role { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间")]
        public DateTime? process_date { get; set; } = DateTime.Now;

        /// <summary>
        /// 申请单编号
        /// </summary>
        [SugarColumn(ColumnDescription = "申请单编号", Length = 200, IsNullable = true)]
        public string? application_form_number { get; set; }

        /// <summary>
        /// 项目单号
        /// </summary>
        [SugarColumn(ColumnDescription = "项目单号", Length = 200, IsNullable = true)]
        public string? XmInfor_id { get; set; }

    }
}
